
import { Toast } from 'vant'
import MfpConfig from '../build/mfp.config.js'
import './store/index.js'
import Vue from './vue.js'
Vue.use(Toast)
Vue.prototype.$Toast = Toast

const allComponents = require.context('./components', true ,/\.vue/)
allComponents.keys().forEach((key) => {
  try {
    if(key.endsWith('/mobile.vue')){
      const comp = allComponents(key)
      const names = key.split('/')
      Vue.component(`${MfpConfig.name}-${names[1]}`,comp.default || comp)
    }
  } catch(err) {
    console.log("mobile ext error:", err.message)
  }
});

export default {

}